package com.hch.netty.nacos.entity;

import java.io.Serializable;

/**
 * @Author: HeCongHui
 * @Time :2021/12/14 10:37
 */
public class AddressDto implements Serializable {
    private String address;

    public AddressDto() {
    }

    public AddressDto(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        AddressDto that = (AddressDto) o;

        return getAddress() != null ? address.equals(that.address) : that.address == null;
    }

    @Override
    public int hashCode() {

        return address != null ? address.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "AddressDto{" +
                "address='" + address + '\'' +
                '}';
    }
}
